﻿using System;
using System.Collections.Generic;
using System.Linq;
using Backend.JYD.Model;
using Backend.JYD.Model.Task;

namespace Backend.JYD.EFDAL.DAL
{
    public class TaskStepModelConditionDAL : Backend.JYD.IDAL.Task.ITaskStepModelCondition
	{
		#region 查询数据TaskStepModelCondition

		/// <summary>
		/// 查询数据
		/// </summary>
		public PageInfo<TaskStepModelCondition> GetTaskStepModelConditionByPage(PageInfo page)
		{
			using (JydDataContext db = new JydDataContext())
			{
                IQueryable<TaskStepModelCondition> query = db.TaskStepModelConditions;
				//其他条件代码
				return new PageInfo<TaskStepModelCondition>(page, query);
			}
		}
		#endregion

		#region 插入数据

		/// <summary>
		/// 插入数据TaskStepModelCondition
		/// </summary>
		public Int64 AddTaskStepModelCondition(TaskStepModelCondition info)
		{
			using (JydDataContext db = new JydDataContext())
			{
				db.TaskStepModelConditions.Add(info);
				db.SaveChanges();
				return 1;
			}
		}
		#endregion

		#region 删除数据

		#endregion

	}
}